﻿using Vega.USiteBuilder;

namespace Lu.Blog.Domain.Model.DocumentType
{
    [DocumentType(Name = "Base navigation", IconUrl = "page.png")]
    public class BaseNavigation : BaseDocument
    {
        public BaseNavigation(int nodeId)
            : base(nodeId)
        {
        }

        public BaseNavigation()
        {
        }

        #region Navigation

        [DocumentTypeProperty(UmbracoPropertyType.TrueFalse, Name = "Hide in navigation",
            Description = "If checked, the page will be hide in the navigation bars", Mandatory = false,
            DefaultValue = false, Tab = "Navigation")]
        public bool HideInNavigation { get; set; }

        [DocumentTypeProperty(UmbracoPropertyType.Textstring, Name = "Navigation title",
            Description = "The text displayed in the menu bar that references that page", Mandatory = false,
            Tab = "Navigation")]
        public string NavigationTitle { get; set; }

        #endregion

        #region Preview

        [DocumentTypeProperty(UmbracoPropertyType.Other, OtherTypeName = "PreviewImagePicker", Name = "Preview image", Tab = "Preview information", Description = "The image displayed as preview image in the tiled-view")]
        public string PreviewImage { get; set; }

        [DocumentTypeProperty(UmbracoPropertyType.Textstring, Name = "Preview title",
            Tab = "Preview information", Description = "The title displayed as preview title in the tiled-view")]
        public string PreviewTitle { get; set; }

        [DocumentTypeProperty(UmbracoPropertyType.RichtextEditor, Name = "Preview body",
            Tab = "Preview information", Description = "The title displayed as preview body in the tiled-view")]
        public string PreviewBody { get; set; }

        [DocumentTypeProperty(UmbracoPropertyType.TrueFalse, Name = "Is a slider ?", Tab = "Preview information",
            Description = "Check if that page has to be highlighted in the slider view on the homepage")]
        public bool IsSlider { get; set; }

        #endregion
    }
}